<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>标签生成结果</title>
    <style>
        body {
            font-family: Arial, sans-serif;
            max-width: 800px;
            margin: 0 auto;
            padding: 20px;
            background-color: #f5f5f5;
        }
        .container {
            background-color: white;
            padding: 20px;
            border-radius: 8px;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        }
        h1 {
            color: #333;
            text-align: center;
        }
        .content-box {
            margin: 20px 0;
            padding: 15px;
            border: 1px solid #ddd;
            border-radius: 4px;
            background-color: #f9f9f9;
        }
        .tags {
            margin: 20px 0;
            padding: 15px;
            border: 1px solid #4CAF50;
            border-radius: 4px;
            background-color: #e8f5e9;
        }
        .performance {
            margin: 20px 0;
            padding: 15px;
            border: 1px solid #2196F3;
            border-radius: 4px;
            background-color: #e3f2fd;
        }
        .performance-item {
            margin: 10px 0;
            padding: 10px;
            background-color: white;
            border-radius: 4px;
            box-shadow: 0 1px 3px rgba(0,0,0,0.1);
        }
        .back-button {
            background-color: #2196F3;
            color: white;
            padding: 10px 20px;
            border: none;
            border-radius: 4px;
            cursor: pointer;
            display: block;
            margin: 20px auto;
            text-decoration: none;
            text-align: center;
        }
        .back-button:hover {
            background-color: #1976D2;
        }
    </style>
</head>
<body>
    <div class="container">
        <h1>标签生成结果</h1>
        <div class="content-box">
            <h3>作业内容：</h3>
            <p th:text="${result.homeworkContent}"></p>
        </div>
        <div class="tags">
            <h3>初始标签（DeepSeek模型生成）：</h3>
            <p th:text="${result.initialTags}"></p>
            <h3>优化后的标签（通义千问模型生成）：</h3>
            <p th:text="${result.finalTags}"></p>
        </div>
        <div class="performance">
            <h3>性能指标：</h3>
            <div class="performance-item">
                <strong>DeepSeek模型调用耗时：</strong>
                <span th:text="${result.deepseekDuration + 'ms'}"></span>
            </div>
            <div class="performance-item">
                <strong>通义千问模型调用耗时：</strong>
                <span th:text="${result.qwenDuration + 'ms'}"></span>
            </div>
            <div class="performance-item">
                <strong>总耗时：</strong>
                <span th:text="${result.deepseekDuration + result.qwenDuration + 'ms'}"></span>
            </div>
        </div>
        <a href="/" class="back-button">返回首页</a>
    </div>
</body>
</html> 